package com.feng.nuike.huawei;

import java.util.*;

/**
 * @author feng
 * @decrition
 * @date 2022/2/170:09
 */
public class HJ3 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int count = scanner.nextInt();
            Set set = new HashSet(count);
            for (int i = 0; i < count; i++) {
                int num = scanner.nextInt();
                set.add(num);
            }
            Object[] array = set.toArray();
            Arrays.sort(array);
            for (Object o : array) {
                System.out.println(o);
            }
        }
    }
}
